package cj.web.vote.domain;

import java.io.Serializable;

import cj.web.admin.domain.DataTablePage;

/**
 * TODO: add class/table comments
 */
public class Vote extends DataTablePage implements Serializable {

    protected Integer id;
	protected String name;
	protected String description;
	protected String startDate;
	protected String endDate;
	protected String deleteFlag;
	protected String createAT;
	protected String updateAT;
	
	protected Integer showFlag;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getCreateAT() {
		return createAT;
	}

	public void setCreateAT(String createAT) {
		this.createAT = createAT;
	}

	public String getUpdateAT() {
		return updateAT;
	}

	public void setUpdateAT(String updateAT) {
		this.updateAT = updateAT;
	}

	public Integer getShowFlag() {
		return showFlag;
	}

	public void setShowFlag(Integer showFlag) {
		this.showFlag = showFlag;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((createAT == null) ? 0 : createAT.hashCode());
		result = prime * result
				+ ((deleteFlag == null) ? 0 : deleteFlag.hashCode());
		result = prime * result
				+ ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((endDate == null) ? 0 : endDate.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((showFlag == null) ? 0 : showFlag.hashCode());
		result = prime * result
				+ ((startDate == null) ? 0 : startDate.hashCode());
		result = prime * result
				+ ((updateAT == null) ? 0 : updateAT.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Vote other = (Vote) obj;
		if (createAT == null) {
			if (other.createAT != null)
				return false;
		} else if (!createAT.equals(other.createAT))
			return false;
		if (deleteFlag == null) {
			if (other.deleteFlag != null)
				return false;
		} else if (!deleteFlag.equals(other.deleteFlag))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (endDate == null) {
			if (other.endDate != null)
				return false;
		} else if (!endDate.equals(other.endDate))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (showFlag == null) {
			if (other.showFlag != null)
				return false;
		} else if (!showFlag.equals(other.showFlag))
			return false;
		if (startDate == null) {
			if (other.startDate != null)
				return false;
		} else if (!startDate.equals(other.startDate))
			return false;
		if (updateAT == null) {
			if (other.updateAT != null)
				return false;
		} else if (!updateAT.equals(other.updateAT))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Vote [id=" + id + ", name=" + name + ", description="
				+ description + ", startDate=" + startDate + ", endDate="
				+ endDate + ", deleteFlag=" + deleteFlag + ", createAT="
				+ createAT + ", updateAT=" + updateAT + ", showFlag="
				+ showFlag + "]";
	}
}